package cn.anecansaitin.whimsy.generator.assets;

import cn.anecansaitin.whimsy.Whimsy;
import cn.anecansaitin.whimsy.common.register.*;
import cn.anecansaitin.whimsy.test.register.TestBlocks;
import cn.anecansaitin.whimsy.test.register.TestEntities;
import cn.anecansaitin.whimsy.test.register.TestItems;
import net.minecraft.data.PackOutput;
import net.neoforged.neoforge.common.data.LanguageProvider;

public abstract class ModLangProvider extends LanguageProvider{
    public ModLangProvider(PackOutput output, String locale) {
        super(output, Whimsy.MODID, locale);
    }

    public static class ZhCn extends ModLangProvider {
        public ZhCn(PackOutput output) {
            super(output, "zh_cn");
        }

        @Override
        protected void addTranslations() {
            //物品
            add(ModItems.ROCK_SCEPTRE.get(), "岩石权杖");
            add(ModItems.ROCK_SCEPTRE_HANDLE.get(), "权杖手柄");
            add(ModItems.ROCK_SCEPTRE_CAP.get(), "权杖杖端");
            add(ModItems.DIORITE_ALTAR_BUILDER.get(), "闪长岩祭坛蓝图");
            add(ModItems.PHANTASM_ARROW_ITEM.get(), "幻影箭");
            add(ModItems.NANO_WRENCH.get(), "纳米扳手");
            add(ModItems.HAND_CANNON.get(), "手炮");
            add(ModItems.DOOMFIST.get(), "末日铁拳");
            //方块
            add(ModBlocks.ROCK_ALTAR.get(), "岩石祭坛");
            //实体
            add(ModEntities.PHANTASM_ARROW.get(), "幻影箭");
            add(ModEntities.STONE_SPIKE.get(), "地刺");
            add(ModEntities.DIORITE_MISSILE.get(), "闪长岩射弹");
            //药水效果
            add(ModEffects.EARTHQUAKE.get(), "地震");
            add(ModEffects.STUN.get(), "眩晕");
            //附魔
            add(ModEnchantments.ARROW_REST.get(),"箭台");
            add(ModEnchantments.AUTOMATIC_TRIGGER.get(),"扳机");
            add(ModEnchantments.RAPID_FIRE.get(),"速射");
            add(ModEnchantments.PHANTASM.get(),"幻影");
            add(ModEnchantments.MANUAL_MOTOR_COORDINATION.get(),"手脚协同");
            add(ModEnchantments.EAGLE_VIEW.get(),"鹰眼");
            //物品工具提示
            add("tooltip.whimsy.phantasm_arrow_item.1", "真正的迅捷之箭");
            add("tooltip.whimsy.phantasm_arrow_item.2", "让闪电击中光灵箭来制作它");
            add("tooltip.whimsy.stun.overlay", "眩晕！");
            //创造工具栏
            add("itemGroup.whimsy.tab", "奇思妙想");
            //快捷键分组
            add("key.categories." + Whimsy.MODID, "奇思妙想");
            //快捷键
            add("key." + Whimsy.MODID + ".battle_mode", "战斗模式");
            //测试物品
            add(TestItems.TEST_ITEM.get(), "测试物品");
        }
    }

    public static class EnUs extends ModLangProvider {
        public EnUs(PackOutput output) {
            super(output, "en_us");
        }

        @Override
        protected void addTranslations() {
            //物品
            add(ModItems.ROCK_SCEPTRE.get(), "Rock Sceptre");
            add(ModItems.ROCK_SCEPTRE_HANDLE.get(), "Rock Sceptre Handle");
            add(ModItems.ROCK_SCEPTRE_CAP.get(), "Rock Sceptre Cap");
            add(ModItems.DIORITE_ALTAR_BUILDER.get(), "Diorite Altar Builder");
            add(ModItems.PHANTASM_ARROW_ITEM.get(), "Phantasm Arrow Item");
            add(ModItems.NANO_WRENCH.get(), "Nano Wrench");
            add(ModItems.HAND_CANNON.get(), "Hand Cannon");
            add(ModItems.DOOMFIST.get(), "Doomfist");
            //方块
            add(ModBlocks.ROCK_ALTAR.get(), "Rock Altar");
            //实体
            add(ModEntities.PHANTASM_ARROW.get(), "Phantasm Arrow");
            add(ModEntities.STONE_SPIKE.get(), "Stone spike");
            add(ModEntities.DIORITE_MISSILE.get(), "Diorite Missile");
            //药水效果
            add(ModEffects.EARTHQUAKE.get(), "Earth Quake");
            add(ModEffects.STUN.get(), "Stun");
            //附魔
            add(ModEnchantments.ARROW_REST.get(),"Arrow Rest");
            add(ModEnchantments.AUTOMATIC_TRIGGER.get(),"Automatic Trigger");
            add(ModEnchantments.RAPID_FIRE.get(),"Rapid Fire");
            add(ModEnchantments.PHANTASM.get(),"Phantasm");
            add(ModEnchantments.MANUAL_MOTOR_COORDINATION.get(),"Linear Drumming");
            add(ModEnchantments.EAGLE_VIEW.get(),"Eagle View");
            //物品工具提示
            add("tooltip.whimsy.phantasm_arrow_item.1", "Genuine Arrow of Swiftness");
            add("tooltip.whimsy.phantasm_arrow_item.2", "Let the Spectral Arrow be struck by lightning to crafting it");
            add("tooltip.whimsy.stun.overlay", "Stun!");
            //创造工具栏
            add("itemGroup.whimsy.tab", "Whimsy");
            //快捷键分组
            add("key.categories." + Whimsy.MODID, "Whimsy");
            //快捷键
            add("key." + Whimsy.MODID + ".battle_mode", "Battle Mode");
            //测试物品
            add(TestItems.TEST_ITEM.get(), "Test Item");
        }
    }
}
